package org.JQbitorrentClinet.request.rss;

import com.google.gson.reflect.TypeToken;
import lombok.Builder;
import org.JQbitorrentClinet.utils.HttpClientProxyRequestType;
import org.JQbitorrentClinet.pojo.rss.RssAutoDownloadingRule;
import org.JQbitorrentClinet.base.BaseParam;

import java.util.Map;

@Builder
public class RssGetAutoDownloadingRuleParam extends BaseParam {

    public RssGetAutoDownloadingRuleParam() {
        requestType = HttpClientProxyRequestType.GET;
        responseType =  new TypeToken<Map<String,RssAutoDownloadingRule>>(){}.getType();
    }

    @Override
    public String getApiUrl() {
        return "/api/v2/rss/rules";
    }
}
